package com.designpatterns.factory.factory2.pizzaStroe;

import com.designpatterns.factory.factory2.pizza.Pizza;
import com.designpatterns.factory.factory2.pizza.ny.NYStyleCheesePizza;
import com.designpatterns.factory.factory2.pizza.ny.NYStyleClamPizza;
import com.designpatterns.factory.factory2.pizza.ny.NYStylePepperoniPizza;
import com.designpatterns.factory.factory2.pizza.ny.NYStyleVeggiePizza;

public class NYStylePizzaStroe extends PizzaStroe{
    @Override
    public Pizza createPizza(String type) {
        if(type.equals("cheese")){
            return new NYStyleCheesePizza();
        } else if(type.equals("veggie")) {
            return new NYStyleVeggiePizza();
        } else if(type.equals("clam")){
            return new NYStyleClamPizza();
        } else if(type.equals("pepperoni")) {
            return new NYStylePepperoniPizza();
        }
        return null;
    }
}
